.danmu-test {
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.test-header {
  text-align: center;
  color: white;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.test-header h1 {
  margin: 0 0 10px 0;
  font-size: 2rem;
  font-weight: 700;
}

.test-header p {
  margin: 5px 0;
  font-size: 1rem;
  opacity: 0.9;
}

.test-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 20px;
}

.danmu-display-area {
  flex: 1;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.danmu-item {
  position: absolute;
  white-space: nowrap;
  font-weight: bold;
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
}

.danmu-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05) !important;
  z-index: 10;
}

.danmu-item.paused {
  background: rgba(255, 193, 7, 0.3);
  border: 2px solid #ffc107;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.control-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.danmu-input {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.danmu-input:focus {
  border-color: #667eea;
}

.send-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.control-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.control-btn {
  padding: 8px 16px;
  background: #f8f9fa;
  color: #495057;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  transform: translateY(-1px);
}

.status-info {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #6c757d;
}

.status-info p {
  margin: 0;
  padding: 5px 10px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .test-header h1 {
    font-size: 1.5rem;
  }
  
  .test-header p {
    font-size: 0.9rem;
  }
  
  .test-container {
    padding: 10px;
    gap: 15px;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .control-buttons {
    justify-content: center;
  }
  
  .status-info {
    flex-direction: column;
    gap: 10px;
  }
} 